import {
    createStore,//创建仓库
    combineReducers,//合并所有的reduce
    applyMiddleware//处理中间件
} from "redux"
//处理异步
import thunk from "redux-thunk"
//打印redux的日志
import logger from "redux-logger"
//引入你的reudce
import reduce from "./reduce"

const AllReduce = combineReducers({
    reduce
})

export default createStore(AllReduce,applyMiddleware(thunk,logger))